﻿using System;

namespace community.Models
{
    // 小区
    public class Complex
    {
        public int Id { get; set; }
        public string Name { get; set; } // 小区名称
        public string Address { get; set; } // 小区地址
        public string Description { get; set; } // 小区描述
        public int CommitteeId { get; set; } // 所属居委会ID
        public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
        public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;

        // 导航属性
        public virtual Committee Committee { get; set; }
        public virtual ICollection<House> Houses { get; set; } = new List<House>();
    }
}
